]> dgit.raspbian.org Git - linux-4.9.git/commit
irq_bcm2836: Send event when onlining sleeping cores
authorPhil Elwell <phil@raspberrypi.org>
Mon, 8 May 2017 15:43:40 +0000 (16:43 +0100)
committerPhil Elwell <phil@raspberrypi.org>
Mon, 8 May 2017 16:00:25 +0000 (17:00 +0100)
commit8ebfcb873b7c78772c315f6f5c11b758fdb594bd
treea1428671def6d5dba3e363d22cc57f8806d25c0b
parentfbddc7cb5f1bd1e3ee0e070ada3c68ad0553ce97
irq_bcm2836: Send event when onlining sleeping cores

In order to reduce power consumption and bus traffic, it is sensible
for secondary cores to enter a low-power idle state when waiting to
be started. The wfe instruction causes a core to wait until an event
or interrupt arrives before continuing to the next instruction.
The sev instruction sends a wakeup event to the other cores, so call
it from bcm2836_smp_boot_secondary, the function that wakes up the
waiting cores during booting.

It is harmless to use this patch without the corresponding change
adding wfe to the ARMv7/ARMv8-32 stubs, but if the stubs are updated
and this patch is not applied then the other cores will sleep forever.

See: https://github.com/raspberrypi/linux/issues/1989

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/irqchip/irq-bcm2836.c